package com.tzy.newbank.BankDao;

import com.tzy.newbank.Pojo.Bankuser2;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class JAPServiceImpl implements JAPService{

    final private myBankDao myBankDao;
    @Override
    public Iterable<Bankuser2> getAll() {
        return myBankDao.findAll();
    }
}
